-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Move Item and fetch to QueryData from WorldQuery
#17679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. And I think the rust compiler would help guide you through this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for fixing this so quickly!
Co-authored-by: Chris Russell <8494645+chescock@users.noreply.github.com>
|
It looks like your PR is a breaking change, but you didn't provide a migration guide. Could you add some context on what users should update when this change get released in a new version of Bevy? |
|
I've added a migration guide for you :) Really excellent stuff; thanks for tackling this. I hope it was fun and/or educational :D |
These were fixes from changes caused by bevyengine#17679
…17679) # Objective Fixes bevyengine#17662 ## Solution Moved `Item` and `fetch` from `WorldQuery` to `QueryData`, and adjusted their implementations accordingly. Currently, documentation related to `fetch` is written under `WorldQuery`. It would be more appropriate to move it to the `QueryData` documentation for clarity. I am not very experienced with making contributions. If there are any mistakes or areas for improvement, I would appreciate any suggestions you may have. ## Migration Guide The `WorldQuery::Item` type and `WorldQuery::fetch` method have been moved to `QueryData`, as they were not useful for `QueryFilter` types. --------- Co-authored-by: Chris Russell <8494645+chescock@users.noreply.github.com>
Objective
Fixes #17662
Solution
Moved
ItemandfetchfromWorldQuerytoQueryData, and adjusted their implementations accordingly.Currently, documentation related to
fetchis written underWorldQuery. It would be more appropriate to move it to theQueryDatadocumentation for clarity.I am not very experienced with making contributions. If there are any mistakes or areas for improvement, I would appreciate any suggestions you may have.
Migration Guide
The
WorldQuery::Itemtype andWorldQuery::fetchmethod have been moved toQueryData, as they were not useful forQueryFiltertypes.